import { request } from "../utils/http"

//注册
export function scoutRegister (data){
  return request({
    url: '/yjxx/public/register',
    method: 'POST',
    data: data
  },false)
}

//获取openid
export function getOpenid (data){
  return request({
    url: '/yjxx/public/wx/get_openid',
    method: 'get',
    data: data
  },false)
}

//推送用户信息
export function pushUserInfo (openid,data = {}){
  return request({
    url: '/yjxx/public/wx/userInfo?openid='+openid,
    method: 'post',
    data: data
  },false)
}


//用户登录
export function login (data = {}){
  return request({
    url: '/yjxx/public/login',
    method: 'post',
    data: data
  },false)
}

//字典查询
export function dictList (data = { }){
  return request({
    url: '/yjxx/public/dict/list',
    method: 'get',
    data: data
  },false)
}